package com.easonji.core.shiro;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: ShiroUser
 * @Description: 自定义Authentication对象，使得Subject除了携带用户的登录名外还可以携带更多信息
 * @Author: LiuJun
 * @date: 2018/07/09 11:31
 * @Version: 1.0
 * @Copyright: Copyright (c) 2018 - 2019
 */
public class ShiroUser implements Serializable {

    private static final long serialVersionUID = 4273770205945758757L;

    /**
     * 用户ID
     */
    public Integer userId;

    /**
     * 账号
     */
    public String account;

    /**
     * 姓名
     */
    public String name;

    /**
     * 性别
     */
    public Integer sex;

    /**
     * 部门id
     */
    public Integer deptId;

    /**
     * 部门名称
     */
    public String deptName;

    /**
     * 角色ID列表
     */
    public List<Integer> roleIds;

    /**
     * 角色名称列表
     */
    public List<String> roleNames;

    /**
     * 职务ID
     * @return
     */
    public Integer postId;

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }

    public List<String> getRoleNames() {
        return roleNames;
    }

    public void setRoleNames(List<String> roleNames) {
        this.roleNames = roleNames;
    }
}
